package com.yangyouqi.chaper2.controller;

import com.yangyouqi.chaper2.config.ConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 杨友奇
 * @Time 2018/7/26
 */
@RestController
public class UserController {

    @Autowired
    private ConfigBean configBean;

    @RequestMapping("/")
    public String hello(){
        return configBean.getName()+configBean.getWant();
    }
}
